#include "food.h"

Food::Food()
{
    // 初始化食物位置
    position = QPoint(0, 0);
}

void Food::setPosition(const QPoint &position)
{
    this->position = position;
}

QPoint Food::getPosition() const
{
    return position;
}
